import request from '@/utils/request'

// 查询成衣物料清单列表
export function listGarmentMetrialList(query) {
  return request({
    url: '/product/garmentMetrialList/list',
    method: 'get',
    params: query
  })
}

// 查询成衣物料清单详细
export function getGarmentMetrialList(id) {
  return request({
    url: '/product/garmentMetrialList/' + id,
    method: 'get'
  })
}

// 新增成衣物料清单
export function addGarmentMetrialList(data) {
  return request({
    url: '/product/garmentMetrialList',
    method: 'post',
    data: data
  })
}

// 修改成衣物料清单
export function updateGarmentMetrialList(data) {
  return request({
    url: '/product/garmentMetrialList',
    method: 'put',
    data: data
  })
}

// 删除成衣物料清单
export function delGarmentMetrialList(id) {
  return request({
    url: '/product/garmentMetrialList/' + id,
    method: 'delete'
  })
}
